package com.hx.study.domain;

import java.util.List;

import com.hx.common.annotation.Excel;
import com.hx.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 问题题目对象 el_question
 *
 * @author user
 * @date 2022-06-06
 */
public class Question extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 题目ID
     */
    private Integer id;

    /**
     * 题目类型
     */
    @Excel(name = "题目类型")
    private String questionType;

    /**
     * 难度
     */
    @Excel(name = "难度")
    private String level;

    /**
     * 内容
     */
    @Excel(name = "内容")
    private String text;

    /**
     * 整题解析
     */
    @Excel(name = "整题解析")
    private String analysis;

    /**
     * 题库id
     */
    @Excel(name = "题库id")
    private String repositoryId;

    /**
     * 候选答案信息
     */
    private List<QuestionAnswer> questionAnswerList;

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setQuestionType(String questionType) {
        this.questionType = questionType;
    }

    public String getQuestionType() {
        return questionType;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getLevel() {
        return level;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getText() {
        return text;
    }

    public void setAnalysis(String analysis) {
        this.analysis = analysis;
    }

    public String getAnalysis() {
        return analysis;
    }

    public void setRepositoryId(String repositoryId) {
        this.repositoryId = repositoryId;
    }

    public String getRepositoryId() {
        return repositoryId;
    }

    public List<QuestionAnswer> getQuestionAnswerList() {
        return questionAnswerList;
    }

    public void setQuestionAnswerList(List<QuestionAnswer> questionAnswerList) {
        this.questionAnswerList = questionAnswerList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("questionType", getQuestionType())
                .append("level", getLevel())
                .append("text", getText())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("analysis", getAnalysis())
                .append("repositoryId", getRepositoryId())
                .append("questionAnswerList", getQuestionAnswerList())
                .toString();
    }
}
